package com.banksoft.cps.service;

import com.banksoft.cps.bean.Company;
import com.banksoft.cps.bean.common.ServiceException;
import com.banksoft.cps.bean.query.CompanyQuery;
import com.banksoft.cps.bean.warpper.CompanyWarpper;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2017/12/22.
 */
public interface CompanyService extends UserService{

    List<CompanyWarpper> list(CompanyQuery query);

    long count(CompanyQuery query);

    void save(Company company);

    CompanyWarpper findById(String id);

    Company login(String account, String password)throws ServiceException;

    void logout(String token);

    void deleteByIds(String[] ids);

    void updateStatus(String id, String status);
}
